Mastering SciPy by Blanco-Silva Francisco J

Mastering SciPy by Blanco-Silva Francisco J

Author:Blanco-Silva, Francisco J.
Language: eng
Format: epub
Publisher: Packt Publishing
Published: 2015-11-09T16:00:00+00:00


The equation has been classified as a member of several types. We can now solve it according to the proper techniques of the corresponding type. For instance, we choose to solve this equation by first assuming that it is separable, and then by computing an approximation of degree four (n=4) to the solution with a power series representation (hint='1st_power_series') around x0=0:

In [5]: ode.dsolve(equation1, hint='separable') Out[5]: f(t) == C1*exp(t) In [6]: ode.dsolve(equation1, hint='1st_power_series', n=4, x0=0.0) Out[6]: f(t) == C0 + C0*t + C0*t**2/2 + C0*t**3/6 + O(t**4)



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.